package com.zyh.service.impl;

import com.zyh.entity.Message;
import com.zyh.entity.Statistic;
import com.zyh.mapper.Statisticmapper;
import com.zyh.service.StatisticService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticserviceImpl implements StatisticService {
    @Autowired
    Statisticmapper statisticmapper;

    @Override
    public List<Statistic> countstatistic(Statistic statistic) {
        return statisticmapper.countstatistic(statistic);
    }

    @Override
    public Integer upadtestatistic(Statistic statistic) {
        return statisticmapper.upadtestatistic(statistic);
    }

    @Override
    public Integer upadatereturn(Statistic statistic) {
        return statisticmapper.upadtebookreturn(statistic);
    }

    @Override
    public Integer upadtebookresidue(Statistic statistic) {
        return statisticmapper.upadtebookresidue(statistic);
    }

    @Override
    public List<Message> selectmesssage(Integer id) {
        return statisticmapper.selectmesssage(id);
    }

}
